package com.xunlai.infra.permission.manager.config;

import com.xunlai.infra.permission.manager.sercurity.SpringSecurityAuditorAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;

/**
 * @author liang
 * @date 12/8/22 10:53 PM
 */
@Configuration
public class JdbcAuditConfig {

    @Bean
    AuditorAware<Long> auditorProvider() {
        return new SpringSecurityAuditorAware();
    }
}
